<?php defined("MAIN_DIR") or die("No direct access"); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
echo ($user->isUser()) ? "Админ-панель" : "Авторизация";
?> - «Банки России»</title>
<link href="/files/css/styles.css" rel="stylesheet" type="text/css" />
<style>
h1 { padding: 0; }
#menu {	padding: 0; }
</style>
<script type="text/javascript" src="/files/js/jquery-1.5.min.js"></script>
<script type="text/javascript" src="/files/js/admin/admin_search.js"></script>
<script type="text/javascript" src="/files/js/admin/admin.js"></script>
</head>
<body>
	<div align="center">
		<div id="main">
			<div style="text-align: right;">
				<div id="logo"><a href="/"><img src="/files/images/logo.png" width="145" height="49" border="0" /></a></div><?php
				if ($user->isUser()) {
					echo "<h1>Админ-панель<br/><a href='/admin/logout/' style='font-size:8pt'>Выход</a></h1>";
				} else {
					echo "<h1>Авторизация</h1>";
				}
			?></div>
			<hr />
			<?php if ($user->isUser()) require_once ADMIN."menu.php"; ?>